#include "BaseNodeVar.h"

namespace Net
{

BaseNodeVar::BaseNodeVar(NodeVarType_E type): id_(0), fixed_(false), type_(type), name_("")
{

}

BaseNodeVar::~BaseNodeVar()
{

}

void BaseNodeVar::setID(uint32_t id)
{
    id_ = id;
}

uint32_t BaseNodeVar::getID() const
{
    return id_;
}

void BaseNodeVar::setName(const std::string &name)
{
    name_ = name;
}

const std::string &BaseNodeVar::getName() const
{
    return name_;
}

void BaseNodeVar::setFixed(bool isFixed)
{
    fixed_ = isFixed;
}

bool BaseNodeVar::isFixed() const
{
    return fixed_;
}

NodeVarType_E BaseNodeVar::getType() const
{
    return type_;
}

}